@import "layout";

/*==========  Common Css  ==========*/
html,body {
  background-color: #eceef0;
  font-family: "微软雅黑";
  width: 100%;
  color: $ftColor;
  height: 100%;
	a {
		color: #2b58b2;
	}

}

///盒子布局样式(子元素水平布局)
.box-style-horizontal {
	width: 100%;
	@include flexbox((
		display: box,
		box-orient: horizontal,
		),$version: 1);
	 .items {
		@include flexbox((
        box-flex: 1
        ),$version: 1)
	}
}

.box-style-horizontal-center {
	width: 100%;
	@include flexbox((
		display: box,
		box-orient: horizontal,
	  box-align: center
		),$version: 1);

}

///盒子布局样式(子元素垂直布局)
.box-style-vertical {
	width: 100%;
	@include flexbox((
		display: box,
		box-orient: vertical
		//box-align: center, ///垂直布局时子元素居中方式
    //box-pack: center
		),$version: 1);

}

///top-title
.top-title {
      width: 100%;
      height: 68px;
      text-align: center;
      color: #fff;
      font-size: 18px; 
      line-height: 63px;
      @include background-mix('../images/page-top.png');
      @extend .box-style-horizontal;
      #left,#right {
        font-size:14px;
        display: block;
        @include flexbox((
           box-flex:1
        ),$version: 1);
        a {
        color:#fff;
        text-decoration:none;
        }
      }
      #center{

        display: block;
        @include flexbox((
           box-flex:5
        ),$version: 1);
      }
     /*==========  右上角菜单  ==========*/
     .menu-btn {
         position:relative;
     }
     .usermenu {
         position: absolute;
         right: 0px;
         z-index: 999;
         li{
             list-style: none;
             width: 120px;
             height: 45px;
             background-color: #2253A3;
             line-height: 45px;
             border-bottom: 1px solid #CCFFFF;
             &:last-child{
                 border: 0 !important;
             }
         }
     }
    }

/*==========================================  Common Css  =============================================*/


 /*==========  公共列表样式  ==========*/
 .common-list {
    .list-data {
      border-bottom: 1px solid $borderColor;
      width: 90%;
      margin: 0 auto;
      ul {
        @extend .box-style-horizontal;
      .items {
        padding:12px 0 12px 0;
        border-solid: 80%;
        div:not(.nocenter) {
        @extend .box-style-vertical;
        @include flexbox((
         //box-pack: center,
         //box-align: center
        ),$version: 1);
       }
      }

      #left {
        @include flexbox((
           box-flex:2
        ),$version: 1);
      }

      #center {
        @include flexbox((
           box-flex:10
        ),$version: 1);
        
          .title {
            font-size: $baseFontSize1;
            font-weight: bold;
          }
          span {
           display: inline-block;
          }
          @include flexbox((
           box-flex:7 !important
         ),$version: 1);
         .user-message {
          margin-top: 5px;
          .m1 {
            width: 16px;
            height: 16px;
            @include background-mix('../images/common.png');
            background-position: 0 -984px;
          }
          .m2 {
            background-color: #2B58B3;
            border-radius: 10px;
            padding:0px 12px 0px 12px;
            color: #fff;
          }
         }
         .view-message {
           margin-top: 5px;
          .m1 {
            display: inline-block;
            width: 16px;
            height: 16px;
            @include background-mix('../images/common.png');
            background-position: 0 -617px;
          }
          .m2 {
            background-color: #B8B16A;
            border-radius: 10px;
            padding:0px 12px 0px 12px;
            color: #fff;
          }
        }
         p {
          line-height: 26px;
         }
      }

      #right {
         @include flexbox((
           box-flex:1
        ),$version: 1);
         @include background-mix('../images/common.png');
         background-position: 0 32px;
         padding-right: 8%;
      }

    }
  }
}

/*==========================================  Common Css  =============================================*/


.wrap {
   padding-bottom: 35px;
 /*========== 登录 ==========*/
 .forget {
     width: 100%;
     padding-top: 16px;
     #right {
         float: right;
         display: inline-block;
     }
 }
/*==========  首页（加载页面）  ==========*/
     .load-page {
          width: 100%;
          height: 100%;
          background-image: url('../images/load-bg.png');
          background-position: center center;
          background-repeat: no-repeat;
          background-attachment: fixed;
          background-size: cover; 
          .load-img {
            @include background-mix('../images/logon-circle.png');
            background-position: 52% 65%;
            img{
              width: 70%;
              display: block;
              margin-top: 20%;
            }
            @extend .box-style-horizontal;
            @include flexbox((
            box-pack: center,
            box-align: center
            ),$version: 1);
          }
          .load-progress {
            border-bottom: 2px solid #85e003;
            height: 3px;
            width: 80%;
            margin: 0 auto;
            margin-top: 25%;
            position: relative;
            .progress-img {
              position: absolute;
            }
          }
           #content{
             width:90%;
             height:1px;
             margin:50px auto;
             background:#9EDA06;
             }
             .fullwidth .expand{
             width:90%;
             height:1px;
             margin:0;
             background:#B7FD03;
             position:absolute;
             box-shadow:0px 0px 10px 1px rgba(0,198,255,0.7);
             -moz-animation:fullexpand 3s ease-out;
             -webkit-animation:fullexpand 3s ease-out;
            }
            @-moz-keyframes fullexpand{
             0%{width:0px;}
             100%{ width:90%;}
            }
            @-webkit-keyframes fullexpand{
             0%{width:0px;}
             100%{ width:90%;}
            }
            .trigger:hover, .triggerFull:hover, .triggerBar:hover{
             background:-moz-linear-gradient(top, #202020 0%, #161616 100%);
             background:-webkit-linear-gradient(top, #202020 0%, #161616 100%);
            }
            .loadwz {
             text-align: center;
             color: #fff;
             margin: -20px auto;
             width: 90%;
            }
     }
/*==========  加入医途  ==========*/

/*==========  form表单公共样式START  ==========*/
    .form {
      @extend .box-style-vertical;
      width: 95%;
      margin: 0 auto;
      .nofoucs {
          background-color: #ECEEF0 !important;
      }
      .form-data {
        width: 100%;
        margin-top: 15px;
        label:not(.error) {
          display: block;
          margin-bottom: 4px;
          color: #595757;
          margin-left: 1%;
        }
        input:not([type=checkbox]):not([type=radio]):not([type=file]){
          @include input-mix(30px,100%,5px);
          height: 32px;
        }

        textarea{
          @include input-mix(30px,100%,5px);
          height: 120px;
          line-height:26px;
        }
        select {
          @include input-mix(30px,100%,5px);
          height: 35px;
          & option {
            color: #595757;
          } 
        }
        input[type=checkbox] {
          @include checkbox-mix(5%);

        }
        .submit-btn {
          @include btn-mix(40px,100%,5px);
          //margin-left: 5%;
        }

      }
      .flex-horizontal-layout {
        @extend .box-style-horizontal;
        @include flexbox((
        box-align: center, ///垂直布局时子元素居中方式
        box-pack: center
        ),$version: 1);
        input {
          margin-left: 0 !important;
          width: 100% !important;
        }
        button {
          margin-left: 0 !important;
          width: 100% !important;
          font-size:$baseFontSize !important;
        }
        span {
          display: inline-block;
          width: 10px;
          height: 1px;
        }
      }

      .flex-horizontal-center {
        @extend .box-style-horizontal-center;
        @include flexbox((
        box-align: center, ///垂直布局时子元素居中方式
        box-pack: center
        ),$version: 1);
            
      }
    }
   /*==========  form表单公共样式END  ==========*/


  .join-us {
  	.ty-logon {
  		@include background-mix('../images/common.png');
  		width: 100px;
        height: 143px;
  		background-position: 0 -3625px;
  		margin: 12px auto;
  		margin-bottom: -12px;
  	}

		#bind-mobile {
			#first {
				font-size: 14px;
			}
		    #last {
				font-size: 13px;
				display: inline-block;
				padding-left: 24px;
        line-height: 17px;
			}
		}
  }

  /*==========  注册成功  ==========*/

  .regsuccess-page {
  	// @include background-mix('../images/top-bg.png');
  	.header img {
  	   width: 100%;
  	}
  	.ty-logon{
  		@include background-mix('../images/common.png');
  		width: 100px;
      height: 143px;
  		background-position: 0 -3914px;
  		margin: 12px auto;
  		margin-bottom: -12px;
  	}
  	.success-inform {
  		/*@include background-mix('../images/error.png');*/
  		padding-top: 20%;
	    height: 200px;
	    /*background-size: 48%;
	    background-position-y: 57px;*/
  		padding-top:20%;
  		span {
  			display: block;
  			text-align: center;
  			line-height:25px;
  			color: #231815;
  		}
  	}
  	.success-footer-imform {
  		width: 100%;
  		position: fixed;
  		bottom: 0px;
  		background-color: #dcdddd;
  		text-align: center;
  		color: #8d8c8c;
  		padding-top:5px;
  		padding-bottom:5px;
  		span {
  			display: block;
  			line-height: 18px;
  		}
  		.link-user {
  			font-size: 12px;
  		
  		}
  		.link-way {
  			text-align: center;
            font-size: 13px;
  		}
  	}
  }

 /*==========  公共首页  ==========*/
   .commonhome-page {
   	.user-info {
       color: #fff;
       text-align: center;
       padding-top: 16px;
       @include background-mix('../images/top-bg.png');
       width: 100%;
       height: 210px;
       span {
        line-height: 24px;
       }
    }
    .menu-list {
      ul {
        border-bottom:1px solid $borderColor;
        @extend .box-style-horizontal-center;
        li{
          list-style: none;
        }
        .left-icon {
          
          width: 78px;
          height: 80px;
          background-color: #2b58b2;
          @include background-mix('../images/common.png');
        }
        #left {
          background-position: 20px -2616px;
          background-color: #2b58b2;
        }
        #left1 {
          background-color: #356ec9;
          background-position: 15px -3150px;
        }
        #left2 {
          background-color: #1e9ad8;
          background-position: 16px -3050px;
        }
        #left3 {
          background-color: #8fdbbe;
          background-position: 20px -496px;
        }
        #center {
          padding-left: 10px;
          @include flexbox((
           box-flex:10
        ),$version: 1);
        .t1{
          color: #595757;
          font-size: 16px;
          text-align: left;
          display: inline-block;
          }
        .t2{
          color: #9d9e9f;
          font-size: 12px;
          text-align: left;
          word-break: break-all;
          word-wrap: break-word;
          display: inline-block;
          }
        }
        #right {
          @include background-mix('../images/common.png');
          background-position: 0 16px;
          height: 80px;
          padding-right:9%;
          width: 10px;
        }
      }
    }
   }


   /*==========  最新手术集锦  ==========*/

   .list-data-page {
    #left{
      margin-top: 10px;
    }
   }
 
     /*==========  手术规范学习  ==========*/
     .op-standard-page {
      .items {
        padding: 0 !important;
      } 
       padding-bottom: 36px;
      .loop-ppt {
        text-align: center;
        margin-top: 6px;
        z-index: 0;
        position: relative;
         img {
           width: 98%;
         }
      }
      .op-stand-info {
        position: relative;
        padding-bottom: 114px;
        ul {
        @extend .box-style-horizontal-center;
        position: absolute;
        left: 16px;
        top:18px;
        width: 90%;
        li{
          list-style: none;
        }

      }
      }

      #form1 {
        margin-top: 15px;
        text-align: center;
        textarea {
          border-radius: 4px;
          width: 90%;
          height: 100px;
        }
       .submit-btn {
          margin-top: 12px;
          @include btn-mix(40px,90%,5px);
        }
      }
      .comment {
         margin-top: 15px;
         .comment-content {
            width: 90%;
            margin: 0 auto;
            border: 1px solid #d6d8d9;
            text-indent: 1em;
          }
        .comment-user {
          color: #595757;
          background-color: #f5f5f5;
          border-bottom: 1px solid #d6d8d9;
          padding: 4px 0 4px 0;
          @extend .box-style-horizontal-center;
          span {
            display: block;
          }
          #user-name {
           @include flexbox((
           box-flex: 7
            ),$version: 1);
          }
          #comment-date {
          @include flexbox((
           box-flex: 1
            ),$version: 1);
          }
        }

        .comment-detail {
          padding: 4px 0 4px 0;
          background-color: #fff;
          color: #9fa0a0;
        }
      }
     }


    /*==========  文章详细信息  ==========*/
    .op-article {
      .article-content {
        color: #595757;
        line-height: 29px;
        width: 80%;
        background-color: #fff;
        min-height: 300px;
        margin: 25px auto;
        border: 1px solid #d8d3cd;
        text-indent: 2em;
        padding:15px;
        word-break: break-all;
        word-spacing: break-word;
        word-wrap: wrap;
      }
      .article-img {
        text-align: center;
        img {
        width: 90%;
        }
      }
    }


    /*==========  医生个人中心(直接引用上方“公共首页”的样式)  ==========*/
    .docenter {
      #left {
         background-position: 12px -1788px !important;
      }
       #left1 {

         background-position: 11px -82px !important;
      }
       #left2 {

        background-position: 11px -176px !important;
      }
       #left3 {

        background-position: 12px -3244px !important;
      }
       #left4 {
        background-color: #d3d090;
        background-position: 11px -391px  !important;
      }
    }


     /*==========  我的助手(医生)(直接引用上方“最新手术集锦”的样式)  ==========*/
    
     .doctor-assist-page {
      #left {
          margin-top: 10px;
      }
      #center {
        .user-message {
        .m1 {
          background-position: 0 -1116px !important;
        }
      }
      .view-message {
        .m1 {
          background-position: 0 -1050px !important;
        }
        .m2 {
           padding: 0px 4px 0px 4px !important; 
        }
      }
    }
    #right {
      padding-right: 10% !important;
    }
   }

      /*==========  邀请助手(直接引用上方“表单公共样式”的样式) ==========*/
     .invite-assist-page {
      .flex-horizontal-center {
        @extend .box-style-horizontal;
        @include flexbox((
           box-align: center !important,
           box-pack: center  !important
          ),$version: 1);
         p {
          //border: 1px solid red;
        }
      }
     }

    /*=========================我的预约（医生）=============================*/

    .doctor-appoint-page {
      #left {
        margin-top: 10px;
      }
      #center {
      .user-message {
        .m1 {
          background-position: 0 -1116px !important;
        }
      }
      .view-message {
        .m1 {
          background: url('../images/appoint-date-icon.png') no-repeat center !important;
        }
      }
     }

    }

   /*=========================医生时间管理=============================*/

    .doctor-timemgt-page {
      .time-tab {
       @extend .box-style-horizontal;
       @include flexbox((
        box-pack: center
        ),$version: 1);
      }
      .table-header {
        width: 100%;
        height: 56px;
        background-color: #72a000 !important;
        margin: 0 auto;
        color: #fff;
        font-size: 18px;
        font-weight: bold;
        line-height: 56px;
        text-align: center;
        @include background-mix('../images/time-mgt-icon.png');
        background-position-x: 27%;
      }
      table {
        width: 100%;
        @include table-scaffolding;
        td,th {
          border: 1px solid #b2b2b2;
          padding:15px;
          text-align: center;
          color: #5d5d5d;
        }
      }
      .mgntimedes {
          @extend .box-style-horizontal;
          p{
              margin-left:8px;
              &:last-child{
                  span{
                        background-color:#2253A3 !important;
                  }
              }
          }
          span {
              display:inline-block;
              height: 10px;
              background-color:#72A000;
              width: 50px;
             
          }
     
      }
    }

   /*=========================医途历程=============================*/
    .yt-progress-page {
      header {
       @extend .box-style-horizontal-center;
       @include flexbox((
        box-pack: center
        ),$version: 1);
     }
     ul {
       @extend .box-style-vertical;
       @include flexbox((
         box-align: center,
         box-pack: center
        ),$version: 1);
       background: url('../images/pro-border.png') repeat-y center;
       li {
          list-style: none;
          width: 50px;
          height: 106px;
          padding:20px 0 30px 0;
          position: relative;

        &:nth-child(odd) {
          @include background-mix('../images/pro1.png');
          position: relative;
          span {
            line-height: 25px;
            left: -133px;
            top: 24px;
          }
          span:first-child {
          position: absolute;
          width: 150px;
          height: 106px;
          @include background-mix('../images/pro-content.png');
          }
          span:last-child {
          position: absolute;
          left: -105px !important;
          top: 39px !important;
          color: #727171;
          line-height: 25px;
         }
        }
        &:nth-child(even) {
          @include background-mix('../images/pro2.png');
          span:first-child {
          position: absolute;
          width: 150px;
          height: 106px;
          left: 34px;
          top: 24px;
          @include background-mix('../images/pro-content-right.png');
          }
          span:last-child {
          position: absolute;
          right: -110px !important;
          top: 46px !important;
          color: #727171;
          line-height: 25px;
         }
        }
      }
     }
  
    }

    /*=========================医院中心=============================*/
    .hoscenter {
       #left {
         background-position: 12px -1788px !important;
      }
       #left1 {
         background:url('../images/op-case.png') center no-repeat;
         background-position: 12px 14px !important
      }
       #left2 {

        background-position: 11px -176px !important;
      }
       #left3 {
         background:url('../images/op-patlist.png') center no-repeat;
         background-position: 12px 14px !important
      }
    }
    /*=========================我的病例=============================*/
   .pat-case-page {
     #center {
      .m1 {
         background: url('../images/appoint-date-icon.png') no-repeat center !important;
      }
     }
   }

    /*=========================我的预约/填写患者信息=============================*/
    .pat-appointment-page {
      
       #center {
        .m2 {
          padding: 0px 6px 0px 6px !important;
        }
        .status1 {
          background-color: #72A000 !important;
        }
        .status2 {
          background-color: #E7AD04 !important;
        }
        .status3 {
          background-color: #595959 !important;
        }
        .status4 {
          background-color: #B55024 !important;
        }
       }
       #right {
        padding-right:10% !important;
       }
      .view-status {
        border-radius: 10px;
        background-color: #72a000;
        color: #fff;
        text-align: center;
        width: 60px;
        padding: 5px 0 5px 0;
        font-size: 14px;
      }
      .notice {
        width: 90%;
        line-height: 25px;
        color: #727171;
        margin: 0 auto;
      }
   }

   /*=========================我的学习=============================*/
   .assist-study-page {
    #left {
      img {
        margin-top: 18px;
      }
    }
   }

   /*=========================我的手术（医生）=============================*/
   .doctor-operation-page {
      #left {
        img {
          margin-top: 25px;
        }
      }
       .right {
        img {
          margin-top: 28px;
        }
      }
      #center {
        .user-message {
          .m1 {
            background-position:  0 -1116px;
          }
        }
        .view-message {
          .m1 {
            background: url('../images/appoint-date-icon.png') no-repeat center !important;
          }
        }
      }  
   }

   /*=========================我的手术（手术预定）=============================*/
   .pat-optpayment-page {
     #left {
      margin-top: 21px !important;
     }
     .right {
      margin-top: 25px !important;
     }
     #pat-header {
      background: none !important;
      background-color: #f1f5f8 !important;
      width: 90%;
      margin: 0 auto;
      color: #595757;
      padding:30px 0 80px 0;
      #name {
        font-size: 22px;
        font-weight: bold;
      }
     }

     .pat-msg-money {
      width: 90%;
      margin: 0 auto;
      color: #595757;
      height: 60px;
      background-color: #f1f5f8;
      @extend .box-style-horizontal;
      .left {
        @include flexbox((
         box-flex: 1,
         box-align: center !important
        ),$version: 1);
        img {
          margin-top: 12px;
        }
      }
      .right {
        @include flexbox((
         box-flex: 3,
         box-align: center !important
        ),$version: 1);
        line-height: 6x;
        font-size:18px;
      }
     }
   
  }

  /*=========================成功支付定金=============================*/
  .pat-pay-success {
    .list-data {
     border: none !important;
    }
    .opt-message {
      #left {
        margin-top: 25px;
      }
      .right {
        margin-top: 30px;
      }
    }
    .pat-msg-money,.pat-option-role {
      background-color: #fff;
      width: 95%;
      margin: 0 auto;
      .list-data {
      border: none !important;
    }
     #left {
      img {
        margin-top: 10px;
        margin-left: -12px;
      }
     }
     #center {
      .user-message {
      .m1 {
        background-position: 0 -1116px !important;
      }
     }
      .view-message {
      .m1 {
        background-position: 0 -1050px !important;
      }
     }
    }
  }
  .pat-option-role {
    p {
      color: #878787;
      line-height: 25px;
      padding: 5px 15px 5px 15px;
    }
  }
 }

    /*=========================患者中心=============================*/
  .patcenter {
      #left {
          background-position: 12px -1788px !important;
      }
      #left1 {
         background:#356ec9 url('../images/op-plan.png') center no-repeat !important;
      }
  }

  
    /*=========================名家谈手术=============================*/
    .videodesc {
        width: 90%;
        background-color:#fff;
        margin: 0 auto;
        border-radius:3px;
        span {
            display: inline-block;
            padding:5px 0 0 5px;
        }
        p {
         line-height: 28px;
         text-indent:2em;
         padding:10px;
       
        }
    }

    /*=========================公共首页样式修改=============================*/
.common-page{
   .header img {
     width: 100%;
    }
    p{
      @extend .box-style-horizontal;
      @include flexbox((
         box-pack: center
      ),$version: 1);
    }

    span{
      display: block;
      height: 200px;
      @include flexbox((
        box-flex: 1
      ),$version: 1);
      text-align: center;
      margin-top: 20px;
      a{
        display: inline-block;
        width: 80%;
        height: 100%;
        border-radius: 14px;
        color: #fff;
        text-decoration: none;
        font-size: 22px;
        position: relative;
        i {
          position: absolute;
          display: inline-block;
          left: 50%;
          margin-left: -51%;
          width: 100%;
          &:first-child {
            top: 20%;
          }
          &:last-child {
            top: 70%;
          }
        }
      }

    }
      #sp1 a{
        background-color: #1d6bbd;
      }
      #sp2 a{
        background-color: #356ec9;
      }
      #sp3 a{
        background-color: #1e9ad8;
      }
      #sp4 a{
        background-color: #b7b16a;
      }
  }

}

